/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.gr.jcash.iface;

import br.com.gr.jcash.exception.JCashException;
import java.util.List;

/**
 *
 * @author gelson
 */
public interface IBO<T> {

    void criar(T entity) throws JCashException;
    
    T editar(T entity) throws JCashException;

    void remover(T entity) throws JCashException;
    
    T buscarPorId(Long id) throws JCashException;

    List<T> buscarTodos() throws JCashException;

    List<T> buscarPorFaixa(int[] faixa) throws JCashException;
    
    Long count() throws JCashException;
}
